#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/platform_device.h>
 
static void demo_dev_release(struct device *dev)
{
	printk("demo_dev_release\n");
	return ;
}
 

static struct platform_device demo_dev_device=
{
    .name = "bigbang",
    .id = -1,
    .dev.release = demo_dev_release,
    .num_resources = 0,
    .resource = NULL,
};
 
static int __init demo_dev_init(void)
{
	printk("demo_dev_init\n");
	return platform_device_register(&demo_dev_device);
}
 
static void __exit demo_dev_exit(void)
{
	printk("demo_dev_exit\n");
	platform_device_unregister(&demo_dev_device);
	return;
}
 
MODULE_LICENSE("GPL");
module_init(demo_dev_init);
module_exit(demo_dev_exit);